PDA

View Full Version : سوال: بازشدن صفحه ایی جدید و سفیدشدن صفحه والد



h.alizadeh
سه شنبه 11 آبان 1389, 00:08 صبح
سلام،

این کد من هست،

<a href="javascript:window.open('combo.php','_blank','width =900,height=800,status=yes,resizable=yes,scrollbar s=yes');">ویرایش</a>

وقتی بر روی لینک کلیک میکنم، صفحه جدیدی باز میشه ولی صفحه ی قبلی محتواش سفید میشه و می نویسه:
درie7:
[object]
درff:
[object window]

میشه بگید چکار کنم؟و چرا اینطوره؟

funpatogh
سه شنبه 11 آبان 1389, 01:17 صبح
به این شکل عمل کنید


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Lang" content="en">
<meta name="author" content="">
<meta http-equiv="Reply-to" content="@.com">
<meta name="generator" content="PhpED 5.8">
<meta name="description" content="">
<title>Untitled</title>
<script language="javascript">
function openurl(){
window.open('combo.php','_blank','width=900,height =800,status=yes,resizable=yes,scrollbars=yes');
}
</script>
</head>
<body>
<a href="javascript:openurl()">ویرایش</a>
</body>
</html>

امیـرحسین
سه شنبه 11 آبان 1389, 09:33 صبح
من تست کردم با onclick مشکلی نداره:

<a href="javascript:void(0)" onclick="window.open('combo.php','_blank','width=900,height =800,status=yes,resizable=yes,scrollbars=yes');">ویرایش</a>

mohmadd
سه شنبه 11 آبان 1389, 20:54 عصر
من تست کردم با onclick مشکلی نداره:

<a href="javascript:void(0)" onclick="window.open('combo.php','_blank','width=900,height =800,status=yes,resizable=yes,scrollbars=yes');">ویرایش</a>
منظور از javascript:void(0) چیه؟
به اصطلاح شما اینو وارد کردید که با صفحه اصلی هیچ کار نداشته باشه درسته ؟