View Single Post
Old 06-17-2002, 05:48 PM   PM User | #1
Liz Beckman
New to the CF scene

 
Join Date: Jun 2002
Location: Colorado
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Liz Beckman is an unknown quantity at this point
Question Open-window for non-java browsers

My open Window javascript will not work gracefully for browsers with Javascript turned off; they click on the link and nothing happens. If Java is on, a new window opens that is sized as specified. To solve this, would I have to have something that detects whether the visitor has Javascript and loads a different page if they do? I wish my open Window script would open a new window of a specific size for Java browsers and would open in the same window for non-Java browsers. Here is the script I am using:

This part goes in the HEAD section:

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->

This is the code around the LINK in the BODY section:

<a href="javascript:;" onClick="MM_openBrWindow('target-page.htm','Window TitleBar Name','toolbar=yes,scrollbars=yes,resizable=yes,width=600,height=400')">
LINK TEXT HERE
</a>

The problem is that users with Java turned off click on the link and go nowhere. Any solutions?
Liz Beckman is offline   Reply With Quote