How to hide address bar with Javascript or PHP
Moderator: General Moderators
How to hide address bar with Javascript or PHP
HI
am using this code to open file filename.php
window.open("filename.php","_parent");
it will open filename.php with url http://hostname/filename.php in the addressbar.
now my problem is how to open that filename.php by hiding that url in the addressbar.(means that file should open without showing url in the addressbar)
any one plz help me in this regard.....
thanks in advance
madhu
feyd | Did this subject require yelling? I think not.
am using this code to open file filename.php
window.open("filename.php","_parent");
it will open filename.php with url http://hostname/filename.php in the addressbar.
now my problem is how to open that filename.php by hiding that url in the addressbar.(means that file should open without showing url in the addressbar)
any one plz help me in this regard.....
thanks in advance
madhu
feyd | Did this subject require yelling? I think not.
http://msdn.microsoft.com/workshop/auth ... open_0.asp
Mind you, right click and View Page Info will reveal the URL..
Mind you, right click and View Page Info will reveal the URL..
hi again failed.
c i implemented like this.
window.open("filename.php","_parent",'width=800,height=600,left=0,top=0,status=0,toolbar=0,fullscreen=1,channelmode=1,location=0,menubar=0,titlebar=0');
but again addressbar is coming with that url
plz help,it is very urgent.............
waiting for ur replies..............
c i implemented like this.
window.open("filename.php","_parent",'width=800,height=600,left=0,top=0,status=0,toolbar=0,fullscreen=1,channelmode=1,location=0,menubar=0,titlebar=0');
but again addressbar is coming with that url
plz help,it is very urgent.............
waiting for ur replies..............
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Does your browser perhaps have an option that prevents JS from hiding the address bar?
In any case you don't need to explicitly set the options to false since you "add" window elements AFAIK. Also assign the result to a variable so you can manipulate it afterwards
In any case you don't need to explicitly set the options to false since you "add" window elements AFAIK. Also assign the result to a variable so you can manipulate it afterwards
Code: Select all
var myWindow = window.open('some_url.php', 'blah', 'width=300,height=300,status=yes');how to know that the browser have an option that prevents JS from hiding the address bar?
i already assigned that thing to a variable,eventhough it is not working.
doPopUpWindow = window.open("filename.php","_parent",'width=800,height=600,left=0,top=0,status=no,toolbar=no,fullscreen=yes,channelmode=yes,location=no,menubar=no,titlebar=no');
plz help..........
its very very urgent..........
waiting for ur valuable replies...............
i already assigned that thing to a variable,eventhough it is not working.
doPopUpWindow = window.open("filename.php","_parent",'width=800,height=600,left=0,top=0,status=no,toolbar=no,fullscreen=yes,channelmode=yes,location=no,menubar=no,titlebar=no');
plz help..........
its very very urgent..........
waiting for ur valuable replies...............
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
The problem is due to mixing " and ' quotes in your JavaScript.madhu wrote:how to know that the browser have an option that prevents JS from hiding the address bar?
i already assigned that thing to a variable,eventhough it is not working.
doPopUpWindow = window.open("filename.php","_parent",'width=800,height=600,left=0,top=0,status=no,toolbar=no,fullscreen=yes,channelmode=yes,location=no,menubar=no,titlebar=no');
Code: Select all
<a href="#" onClick="window.open('t.php','popUpWindow','width=800,height=600,left=0,top=0,status=no,toolbar=no,location=no,menubar=no,titlebar=no');">CLick</a>You really need to get a JavaScript debugger. The problem is very, very obvious if you run the code though one (I use Firefox's Firebug extension).