Andy Nugroho
Andy Nugroho

Reputation: 7

Adding css modal to javascript new open window

I want adding class new open window with css model.

 class="modal-basic"

How can I configure new open window and adding class"modal-basic" to open window with JavaScript ?

window.open('jex5.htm','mywindow','width=600,height=500,left=0,top=100');

Adding new class window so I don't want to input width=600,height=500,left=0,top=100.

window.open('jex5.htm','mywindow','clas=modal-basic');

Upvotes: 0

Views: 242

Answers (1)

PhearOfRayne
PhearOfRayne

Reputation: 5050

The popup window appearance is designed by the browser and css cannot change its styling. If you want to open another location inside a modal just embed an iframe inside a div and style the div to look like your modal.

Upvotes: 1

Related Questions