Php Drupal使用JQuery/JavaScript在新窗口中加载Drupal中的页面
我想在drupal页面中点击一个链接,打开一个新窗口,其中有一个表单。但是这个窗口应该是一个新窗口 我怎么能做到 我想用一个普通的Php Drupal使用JQuery/JavaScript在新窗口中加载Drupal中的页面,php,jquery,drupal,window.open,Php,Jquery,Drupal,Window.open,我想在drupal页面中点击一个链接,打开一个新窗口,其中有一个表单。但是这个窗口应该是一个新窗口 我怎么能做到 我想用一个普通的 window.open(theURL, windowName, features); 但是我该怎么做呢 1) Create a drupal page without the default themes. 2) Load this page from JS into a new window. This page is going to be a form.
window.open(theURL, windowName, features);
但是我该怎么做呢
1) Create a drupal page without the default themes.
2) Load this page from JS into a new window. This page is going to be a form.
我应该只创建一个tpl页面并通过_主题函数加载它吗?我很困惑 这不是Drupal的方式。。。但要回答你的问题: 1) 您不能创建没有主题的drupal页面。您可以在sites/all/forms中创建一个没有Drupal的html表单/ 2)
$('#element').attr('target','u blank')代码>