Mehdi_Enter
September 17th, 2011, 20:24
دکمه ای
برای خروج از
پنجره
<!-- Window Closer
Use either the form button or link to allow the user to close their browser
when they click it, great for custom pop-up banners !-->
<form>
<input type=button value="Close Window" onClick="javascript:window.close();">
</form>
or <a href="javascript:window.close();">Close Window</a>
---------- Post added at 06:43 PM ---------- Previous post was at 06:42 PM ----------
دکمه ای
برای پرینت صفحه
[/font][/size]
<!-- Print Page Script
Use this script to have your
users print your HTML page
-->
<SCRIPT LANGUAGE="JavaScript">
if (window.print) {
document.write('<form> '
+ '<input type=button name=print value="Click" '
+ 'onClick="javascript:window.print()"> To Print this page!</form>');
}
// End -->
</script>
---------- Post added at 06:45 PM ---------- Previous post was at 06:43 PM ----------
رفرش کردن به هنگام
تغییر
اندازه
جستجوگر
<!-- Reload on Resize
If a user resizes the window, it will reload the page,
good if you use multiple javascripts or dhtml on your
page.
-->
<BODY onResize="window.location.href = window.location.href;">
---------- Post added at 08:24 PM ---------- Previous post was at 06:45 PM ----------
جلو
گیری از راست کلیک
<script language="JavaScript">
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Please don't steal my stuff!!!");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</script>
برای خروج از
پنجره
<!-- Window Closer
Use either the form button or link to allow the user to close their browser
when they click it, great for custom pop-up banners !-->
<form>
<input type=button value="Close Window" onClick="javascript:window.close();">
</form>
or <a href="javascript:window.close();">Close Window</a>
---------- Post added at 06:43 PM ---------- Previous post was at 06:42 PM ----------
دکمه ای
برای پرینت صفحه
[/font][/size]
<!-- Print Page Script
Use this script to have your
users print your HTML page
-->
<SCRIPT LANGUAGE="JavaScript">
if (window.print) {
document.write('<form> '
+ '<input type=button name=print value="Click" '
+ 'onClick="javascript:window.print()"> To Print this page!</form>');
}
// End -->
</script>
---------- Post added at 06:45 PM ---------- Previous post was at 06:43 PM ----------
رفرش کردن به هنگام
تغییر
اندازه
جستجوگر
<!-- Reload on Resize
If a user resizes the window, it will reload the page,
good if you use multiple javascripts or dhtml on your
page.
-->
<BODY onResize="window.location.href = window.location.href;">
---------- Post added at 08:24 PM ---------- Previous post was at 06:45 PM ----------
جلو
گیری از راست کلیک
<script language="JavaScript">
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Please don't steal my stuff!!!");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</script>