<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/webPlugInContainerLoad(_:inFrame:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)webPlugInContainerLoadRequest:inFrame:"
  },
  "title" : "webPlugInContainerLoad(_:inFrame:)"
}
-->

# webPlugInContainerLoad(_:inFrame:)

Loads a URL into a web frame.

```
func webPlugInContainerLoad(_ request: URLRequest!, inFrame target: String!)
```

## Parameters

`request`

The request that specifies the URL.

`target`

The frame into which the URL is loaded.

## Discussion

If the frame specified by `target` is not found, a new window is opened, loaded with the URL request, and given the specified frame name. If `target` is `nil`, the frame enclosing the plug-in is loaded with the URL request.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)