Advertisement
5_2007-2008 Windows #178930

_ Open child window without toolbars, menues, buttons ...or all of them....you decide _

Check this out! This code is not only REALLY simple, but has a lot of potential! Fully commented, and easy for you to customize. You probably have seen this function before, but it doesnt get any easier than this. Simply change the URL, and size, and your off!. It's like and 'a href', so you can put the script anywhere you put one. Simple, yet effective....LOTS more to come. Click on any of the sample URLs

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
<html>
<head>
<title>Using JavaScript to open a child window</title>
</head>
<script>
<!-- JavaScript Start -
function openWin( windowURL, windowName, windowFeatures ) {
 return window.open( windowURL, windowName, windowFeatures ) ;
}
JavaScript End -->
</script>
<body>
<!--It's just like a regular 'href', but calls the script to open the new window.
If you also really want to go crazy, you could diable the right click....search for "a right click disabler" -->
<a href="javascript: newwindow = openWin( 'http://www.miata.net/garage/tirecalc.html', 'Title', 'width=450,height=550,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' ); newwindow.focus()">Click here for a child window to open using JavaScript!</a>
<!--anything you can do with a 'href' you can do with this. lots of potential! -->
</body>
</html>
Upload
원본 댓글 (3)
Wayback Machine에서 복구됨