Techiio-author
Started by Bell GrantNov 7, 2021

Open
Display mobile view of website to user by giving URL

5 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 5 VIEWES SHARE

I want to show users how their internet site appearance in the cell so for this cause, I used iframe in my internet site to load their internet site with the aid of giving URL however for a few security motives websites no longer loaded there are cors coverage issues. I also use curl but a few documents not loading due to protection. Is there any API or right way to load like in a real cell device?

<form method="get">
  <input name="website_url" type="url">
  <input type="submit">
</form>
<iframe src="<?=$_GET['website_url']?>"></iframe>

1 Replies

Techiio-commentatorMotiar Rahaman replied 3 months ago0 likes0 dislikes

You could open a new browser window, of the correct width, using Javascript. Run window.open() function this will probably work, but is, of course, not the same as an in page iframe.

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance