jquery – Pass URL to iframe in WordPress

Question

I have a wordpress site with an iframe that displays custom content from an external site.

Here is my iframe:

<iframe src="https://www.targetsite.com/UNIQUECODE" width="800" height="800">

I want the “UNIQUECODE” in the iframe to populate based on the browser URL (my site is example.com):

http://www.example.com/iframepage?UNIQUECODE

Is this possible in wordpress?

0
jvchappy 4 weeks 2021-08-30T19:07:01-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse