Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Open a blank page #1094


User avatar
0
luizluan created

I need to open a blank page and insert html in it. The problem is that when I use the window.open () function that should open a blank page , it returns to the site's domain . How can I open a blank page without the template . I need that blank page to insert html in it to print a custom report .


2 Answer(s)
  • User Avatar
    0
    luizluan created

    I fixed i use

    var newWin = open('about:blank', '', 'height=300,width=300'); newWin.document.write(html);

  • User Avatar
    0
    luizluan created

    I fixed i use

    var newWin = open('about:blank', '', 'height=300,width=300'); newWin.document.write(html);