Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with oncontextmenu and frames

Status
Not open for further replies.

whizza

Programmer
Feb 4, 2002
16
0
0
GB

My webpage consists of 3 frames.

Frame 2 contains radio buttons which when clicked call
a function that generates Frame 3 using writeln.

All 3 Frames have several <input type=submit> buttons to
which I have just added oncontextmenu as follows.

-- snip --
function helpwind(theURL) {
window.open(theURL,'helpwindow','toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400,left=250,top=50')
}
-- snip --
<a href oncontextmenu=&quot;helpwind('/cgi-bin/fc/fc.exe?ico_hlp=HELPS/ICOGFPB3.HTM','',''); return false&quot; class='help'>
<input name='ico_gfp' value='First Page' type='submit' title='Load first page' class='input' onclick=&quot;javascript:Clear23();&quot;>
</a>
-- snip --

After right clicking the <input type=submit> buttons a new
browser window opens and shows a help page.

The problem:

All works fine until the right click has been used to view a help file.
After a help file has been shown any subsequent clicks on the Frame 2
radio buttons causes Internet Explorer 5/5.5/6 to crash.
Using view source on frame 3 reveals the frameset document.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top