Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-22-2005, 05:58 AM
  #1
6x6
Novice (Level 1)
 
Join Date: Sep 2005
Posts: 2
iTrader: (0)
6x6 is an unknown quantity at this point
Javascript: removing menubar on same page

I have the following script, which will open the same page it is in without a menubar. However, if there is no menubar present (in other words: if it has already reloaded once), it should abort. How do I go about this? I figured something like this, which doesn't work obviously:

Code:
<script language="JavaScript">
if (menubar='yes')
{
myWin = window.open(self.location.href,'newWin','menubar=no');
}
else
{
exit; 
}
</script>
6x6 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-22-2005, 10:09 AM
  #2
smartweb
Chevalier (Level 6)
 
Join Date: Sep 2005
Posts: 52
iTrader: (0)
smartweb is an unknown quantity at this point
Appened something to the query string, when opening the new page and check in the page code if this query string value is present. If it is there, then don't reload.
smartweb is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-22-2005, 10:54 AM
  #3
6x6
Novice (Level 1)
 
Join Date: Sep 2005
Posts: 2
iTrader: (0)
6x6 is an unknown quantity at this point
Quote:
Originally Posted by smartweb
Appened something to the query string, when opening the new page and check in the page code if this query string value is present. If it is there, then don't reload.
Could you perhaps provide a (script) explanation?
6x6 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 11:43 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.