Aptana代码段:Javascript弹出窗口

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Aptana代码段:Javascript弹出窗口相关的知识,希望对你有一定的参考价值。

Use this snippet to quickly insert onclick="window.open();" into your html...

---
Snippets can save you time and hassle of typing out bits of code that you frequently use by adding them into your files by simply double-clicking the name of the Snippet.
http://www.aptana.com/docs/index.php/About_Aptana_Snippets

Sometimes it's useful to add a popup to your pages. When the user clicks on a link, a new window opens and displays a page. http://www.quirksmode.org/js/popup.html
  1. <!--
  2. category: HTML
  3. name: Onclick Popup
  4. toolTip: Onclick Popup
  5. prompt(href): Enter the HREF URL
  6. prompt(width): Enter the popup Width
  7. prompt(height): Enter the poup Height
  8. -->
  9. onclick="window.open('${href}', '_blank', 'width=${width},height=${height},scrollbars=yes,status=yes,resizable=yes,screenx=0,screeny=0');"

以上是关于Aptana代码段:Javascript弹出窗口的主要内容,如果未能解决你的问题,请参考以下文章

无法使用内联代码删除 Aptana 中的 Javascript JsLint 错误

MyEclipse 8.5安装Aptana

我想使用 JavaScript 为 JSON 数据创建一个搜索框,并在内容存在与否时弹出一个窗口

Selenium:在javascript代码中关闭棘手的javascript弹出窗口

弹出窗口在 iPad Safari 浏览器中无法正常运行

html 弹出窗口有几种方式