How do you open a new browser window in a popup from a record producer?

patricksmithlat
Mega Contributor

Hi all,

I'm trying to put a hyperlink into the HTML script of a record producer that links to new web page shown in a popup.  I don't want to open the page in a new tab.  I'm seeing lots of script examples but when I enter them into the HTML script section on the record producer, it's not liking it and deleting it.

Here's what I'm shooting for:

<p class="plus"><a  style="text-decoration:none; color:#ffffff;" onclick="window.open('/cms/phone.do', '_blank', 'location=no,toolbar=no,menubar=no,scrollbars=yes,width=760,height=730');     return false;" href="#">

this works in the script of a dynamic content block, but not in the HTML source code section in the "Description" field of a record producer.  Any ideas how to get this to work?  

I've know that target="_blank" opens a new tab...I need something that opens up a popup that I can define the size of like above.

thanks!

6 REPLIES 6

Shashikant Yada
Tera Guru

Hi Patrick,

 

You can write below code, this will open new window not new tab.

 

<a href="print.html"  
    onclick="window.open('print.html', 
                         'newwindow', 
                         'width=300,height=250'); 
              return false;"
 >Print</a>

Thanks
Shashikant

Hit Helpful or Correct on the impact of response.

patricksmithlat
Mega Contributor

hi Shashikantyadav, 

thanks for the reply, that's opening the desired page within the iFrame...is it possible to have it open as a new window but in a popup?

here's your script in my HTML source code for the description field on my record producer.

find_real_file.png

According to my understanding, we can open the URL in new tab or in new window. Something that you are expecting I doubt is possible.

 

Thanks

Shashikant

ok.  We are achieving this with a link scripted in Jelly from within a dynamic block (script in my initial post...any way to translate that straight HTML? 

or as you say, is this not possible?