modifier_guy
12-23-2003, 12:30 AM
i need it show it does not show the address bar by default
www.modfreaks.host.sk/contestmod.php
www.modfreaks.host.sk/contestmod.php
|
Click to See Complete Forum and Search --> : i want to make a page that does not show a adress bar by default modifier_guy 12-23-2003, 12:30 AM i need it show it does not show the address bar by default www.modfreaks.host.sk/contestmod.php TomDenver 12-23-2003, 01:58 AM As far as I know, this can only be done with JavaScript, and it can only be done with your link to the page, not the code on the page itself. Out of curiousity, why would you want to remove the address bar? modifier_guy 12-23-2003, 02:00 AM well see teh page is kinda secret for a few more weeks cus i am showing to friends but then i dont wnat ppl to what teh url is so they cant cut and paste and send to ppl i dont wnat to ahve see it, so hwo cna i do it by java? TomDenver 12-23-2003, 08:39 PM First you'd have to give them a link to a page that has an address bar. Then on that page you'd have a link to a page without an address bar. The link would call a function with this script: <script type="text/javascript"> function newWin() { var openWin=window.open("www.yourlinkhere.com/page.htm", "WindowName", "height=500,width=720,toolbar=0,location=0,status=0'); } </script> Place the previous script in your <head>. Then for your link which opens the window without an address bar: <a href="javascript:newWin();">Link</a> There should not be a space in the word "javascript" but for some reason this message board usually adds one. Make sure to remove it. The part that says "location=0" is what disables the address. As you can guess, "toolbar=0" eliminates the toolbar, and "status=0" eliminates the status bar. Note, there must not be any spaces anywhere between "height=" and "status=0'");". Spaces will make it not work. modifier_guy 12-23-2003, 09:24 PM ok but this is my problem...... <A HREF="javascript:Check()">Access the protected area.</A> ok it is a password protected page so hwo would i add it to something liek ^^^^ that above?^^^? thankyou webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |