[SOLVED] how to hide address bar... in browser

This is a discussion on "[SOLVED] how to hide address bar... in browser" within the JavaScript Forum section. This forum, and the thread "[SOLVED] how to hide address bar... in browser are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 30th, 2008, 15:39
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Smile [SOLVED] how to hide address bar... in browser

Afternoon,
I am trying to get the browser down to its bare minimal.

So I need to get rid of everything. Bit like a popup box, but full screen.

Everything gone:
Address bar
Links
Standard buttons.

I can get it to work through a popup but require the first page to be the same as the rest with everything gone.


Can anyone help.


Any help is greatly appriciated.

Cheers
Dan

Last edited by R8515198; Jan 30th, 2008 at 15:45.
Reply With Quote

  #2 (permalink)  
Old Jan 30th, 2008, 15:58
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how to hide address bar... in browser

SORRY PLEASE COULD SOMEONE MOVE THIS TO THE JAVASCRIPT SECTION
I have found this code its perfect but am having problems changing this code/link var newloc = "http://www.yahoo.com"; to index.htm


Code: Select all
 
<script language="JavaScript"> 
function loadMainWindow() 
{ 
   var win = window.self; 
   win.opener = window.self; 
   var newloc = "http://www.yahoo.com"; 
   var ih = (window.window.screen.availHeight - 60) - 100; 
   var iw = (window.window.screen.availWidth - 10) - 100; 
   var it = ((window.window.screen.availHeight - 60) - ih) / 2; 
   var il = ((window.window.screen.availWidth - 10) - iw) / 2; 
   var features = 
"directories=no,menubar=no,location=no,toolbar=no,status=yes,scrollbars=yes­,resizable=yes" 
+ ",width=" + iw + ",height=" + ih + ",top=" + it + ",left=" + il + ""; 
   v1 = new Date(); 
   v2 = Date.parse(v1); 
   v3 = "pg" + v2; 
   var oNewWindow = window.open(newloc, v3, features); 
   oNewWindow.focus(); 
   win.close(); 

} 

function window.onload() 
{ 
   try 
   { 
      loadMainWindow(); 
   } 
   catch(e) 
   { 
      popUpMessage.style.display = 'block'; 
   } 
} 

</script>
Reply With Quote
  #3 (permalink)  
Old Jan 30th, 2008, 16:01
Aso's Avatar
Aso Aso is online now
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,011
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: how to hide address bar... in browser

You need to specify a full HTTP location.

So if index.htm is in the root of example.com, the link would be
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #4 (permalink)  
Old Jan 30th, 2008, 16:02
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how to hide address bar... in browser

Moved to javascript as requested.


You would need to have newloc contain the entire URL to index.htm

var newloc = 'http://www.yoursite.com/index.htm';
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #5 (permalink)  
Old Jan 30th, 2008, 17:01
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how to hide address bar... in browser

This is all going onto cd so the location will be dependant on what drive the cd is on!!

If
var newloc = 'http://www.yoursite.com/index.htm';
cant be modified does any one have another script that sould have the same effect.

Cheers
Dan
Reply With Quote
  #6 (permalink)  
Old Jan 30th, 2008, 20:20
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how to hide address bar... in browser

If it is not possible to edit the code above,

how would i go about getting the first window to close, and the new window to have the features of the popup.
Then links within stay to the pop up featured window.

Does that make sence??
Reply With Quote
  #7 (permalink)  
Old Jan 30th, 2008, 20:34
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how to hide address bar... in browser

You could try getting the current page location and adding index.htm to it with something like.

Code: Select all
// Assuming index.htm is in the same directory as the current page
var newloc = location.href.substring(0, location.href.lastIndexOf('/')+1) + 'index.htm';
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #8 (permalink)  
Old Jan 30th, 2008, 21:03
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how to hide address bar... in browser

Yet again you have come out with the goods, many thanks.

Cheers

Daniel
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 'browser specific' CSS danny322 Web Page Design 3 Jan 24th, 2008 16:14
[SOLVED] Hide thread unitedcraig Webforumz Suggestions and Feedback 15 Jan 17th, 2008 16:22
[SOLVED] browser display problem thewebkid Web Page Design 2 Nov 29th, 2007 11:54
[SOLVED] CSS Page Layout in other browser dhossai Web Page Design 9 Nov 8th, 2007 14:57
[SOLVED] Show&amp;Hide Div Box Maska JavaScript Forum 6 Oct 1st, 2007 11:04


All times are GMT. The time now is 01:07.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43